package com.learning.spring.cloud.domain.model;

import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.math.BigDecimal;

@Setter
@Getter
@Document
public class Product {
    @Id
    private String id;
    private String name;

    @Field("productCode")
    private String code;
    private String group;
    private BigDecimal price;
}
